// pages/user/user.js
Page({
  data: {
    userInfo: {},
    collectNum: 0
  },
  onLoad: function (options) {
  },
  onShow: function () {
    const userInfo = wx.getStorageSync('userInfo');
    this.setData({
      userInfo
    })
    const collectList = wx.getStorageSync('collectList')
    let collectNum = collectList.length
    this.setData({
      collectNum
    })
  },

})